package ch13;

import java.util.Arrays;

public class SortTrapezoid {
    public static void main(String[] args) {

        ComparableTrapezoid[] Trapezoid1 = {
                new ComparableTrapezoid(24,36,12,12,24),
                new ComparableTrapezoid(12,22,8,12,12),
                new ComparableTrapezoid(10,24,15,10,16),
                new ComparableTrapezoid(25,15,19,20,14)
        };
        Arrays.sort(Trapezoid1);
        // 按照周长降序
        for (Trapezoid resTrapezoid: Trapezoid1){
            System.out.print(resTrapezoid +" ");
            System.out.println();
        }
    }

}
